package zsh.controller;

import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import zsh.domain.Brand;
import zsh.service.IBrandService;

import java.util.List;

@RestController
@AllArgsConstructor
@RequestMapping("/brand")
public class BrandController {
    private IBrandService brandService;
    @GetMapping("/findAll")
    public List<Brand> selectAllBrand() {
        return brandService.selectAll();
    }
}
